﻿using StarPizza.Model.User;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarPizza.ViewModel.User
{
    abstract public class AbstractUserData : VisibleVM
    {        
        protected UserSpace userSpace;

        public AbstractUserData(UserSpace userSpace)
        {
            this.userSpace = userSpace;
            this.IsVisible = false;
        }

        private string login;
        public string Login
        {
            get { return login; }
            set
            {
                if (value != login)
                {
                    login = value;
                    OnPropertyChanged("Login");
                }
            }
        }

        private string password;
        public string Password
        {
            get { return password; }
            set
            {
                if (value != password)
                {
                    password = value;
                    OnPropertyChanged("Password");
                }
            }
        }
    }
}
